package cn.edu.nju.software.zp13.client.assignment9UsingJAXB.assignment3Refactoring.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="成绩类型")
public class Score {
	@XmlElement(name="学号")
	private String studentId;
	@XmlElement(name="得分")
	private int score;

	public Score() {

	}

	public Score(String studentId, int score) {
		super();
		this.studentId = studentId;
		this.score = score;
	}

	public String scoreToString() {
		return score + "";
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

}
